<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="js/jquery-3.1.1.js"></script>
<script src="js/jquery.easyui.min.js"></script>
<script src="js/easyui-lang-zh_CN.js"></script>
<script src="themes/custom/insdep/jquery.insdep-extend.min.js"></script>
<link rel="stylesheet" href="themes/custom/insdep/easyui.css" type="text/css" />
<link rel="stylesheet" href="themes/custom/insdep/master.css" type="text/css" />
<link rel="stylesheet" href="themes/custom/insdep/icon.css" type="text/css" />

</head>

<body class="easyui-layout">
    <div data-options="region:'north',bodyCls:'master-header-layout'" style="height:100px;"></div>
    <div data-options="region:'west',title:'West'" style="width:300px; padding:10px 20px;">
        <a id="msg" class="easyui-linkbutton button-warning" style="width:100%">消息发送</a>
    </div>
    <div data-options="region:'center'" style="background:#eee;">
        <div id="right_tabs" class="easyui-tabs theme-tab-black-block" style="width:100%;height: 100%">
            <div title="Tab1">
                tab1
            </div>
        </div>
    </div>

<script type="text/javascript">
    $(function () {
        $('#msg').click(function () {
            if ($('#right_tabs').tabs('getTab', 1)) {
                $('#right_tabs').tabs('select', 1);
            } else {
                $('#right_tabs').tabs('add', {
                    title: '消息发送',
                    //href: 'sendMsg.jsp',
                    fit: true,
                    border: false,
                    selected: true,
                    index: 1,
                    closable: true,
                    content: "<iframe style='width: 100%;height: 95%'  src='sendMsg.jsp'  frameborder='0'></iframe>"
                });
            }
        });
    });
</script>
</body>
</html>